# Maintainer: Yusuke Sasaki <y_sasaki@nuem.nagoya-u.ac.jp>

_realname=potrace
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.13
pkgrel=1
pkgdesc="Tool for tracing a bitmap, which means, transforming a bitmap into a smooth, scalable image (mingw-w64)"
arch=('any')
url='http://potrace.sourceforge.net/'
license=('GPL2')
source=("http://potrace.sourceforge.net/download/${pkgver}/${_realname}-${pkgver}.tar.gz")
sha256sums=('6252438b6b6644b9b6298056b4c5de3690a1d4e862b66889abe21eecdf16b784')

build() {
  cd "$srcdir/${_realname}-${pkgver}"
  ./configure \
    --prefix=${MINGW_PREFIX} \
    --mandir=${MINGW_PREFIX}/share/man \
    --enable-shared \
    --with-libpotrace
  make
}

package() {
  cd "$srcdir/${_realname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
